﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telerik.WinControls.UI.Localization;

namespace 串口调试助手
{
    class MyCNRadGridLocalizationProvider : RadGridLocalizationProvider
    {

        public override string GetLocalizedString(string id)
        {
            switch (id)
            {
                case RadGridStringId.ConditionalFormattingPleaseSelectValidCellValue: return "请选择有效单元格值";
                case RadGridStringId.ConditionalFormattingPleaseSetValidCellValue: return "请设置有效单元格值";
                case RadGridStringId.ConditionalFormattingPleaseSetValidCellValues: return "请设置有效单元格值";
                case RadGridStringId.ConditionalFormattingPleaseSetValidExpression: return "请设置有效表达式";
                case RadGridStringId.ConditionalFormattingItem: return "项目";
                case RadGridStringId.ConditionalFormattingInvalidParameters: return "无效的参数";
                case RadGridStringId.FilterFunctionBetween: return "之间";
                case RadGridStringId.FilterFunctionContains: return "包含";
                case RadGridStringId.FilterFunctionDoesNotContain: return "不包含";
                case RadGridStringId.FilterFunctionEndsWith: return "结束";
                case RadGridStringId.FilterFunctionEqualTo: return "等于";
                case RadGridStringId.FilterFunctionGreaterThan: return "大于";
                case RadGridStringId.FilterFunctionGreaterThanOrEqualTo: return "大于或等于";
                case RadGridStringId.FilterFunctionIsEmpty: return "是空的";
                case RadGridStringId.FilterFunctionIsNull: return "是空的";
                case RadGridStringId.FilterFunctionLessThan: return "小于";
                case RadGridStringId.FilterFunctionLessThanOrEqualTo: return "小于或等于";
                case RadGridStringId.FilterFunctionNoFilter: return "没有过滤器";
                case RadGridStringId.FilterFunctionNotBetween: return "不间";
                case RadGridStringId.FilterFunctionNotEqualTo: return "不等于";
                case RadGridStringId.FilterFunctionNotIsEmpty: return "非空";
                case RadGridStringId.FilterFunctionNotIsNull: return "非空";
                case RadGridStringId.FilterFunctionStartsWith: return "开始";
                case RadGridStringId.FilterFunctionCustom: return "自定义";
                case RadGridStringId.FilterOperatorBetween: return "之间";
                case RadGridStringId.FilterOperatorContains: return "包含";
                case RadGridStringId.FilterOperatorDoesNotContain: return "不包含";
                case RadGridStringId.FilterOperatorEndsWith: return "结束";
                case RadGridStringId.FilterOperatorEqualTo: return "等于";
                case RadGridStringId.FilterOperatorGreaterThan: return "大于";
                case RadGridStringId.FilterOperatorGreaterThanOrEqualTo: return "大于或等于";
                case RadGridStringId.FilterOperatorIsEmpty: return "空的";
                case RadGridStringId.FilterOperatorIsNull: return "空的";
                case RadGridStringId.FilterOperatorLessThan: return "小于";
                case RadGridStringId.FilterOperatorLessThanOrEqualTo: return "小于或等于";
                case RadGridStringId.FilterOperatorNoFilter: return "没有过滤器";
                case RadGridStringId.FilterOperatorNotBetween: return "不间";
                case RadGridStringId.FilterOperatorNotEqualTo: return "不等于";
                case RadGridStringId.FilterOperatorNotIsEmpty: return "非空";
                case RadGridStringId.FilterOperatorNotIsNull: return "非空";
                case RadGridStringId.FilterOperatorStartsWith: return "开始";
                case RadGridStringId.FilterOperatorIsLike: return "像";
                case RadGridStringId.FilterOperatorNotIsLike: return "不像";
                case RadGridStringId.FilterOperatorIsContainedIn: return "包含";
                case RadGridStringId.FilterOperatorNotIsContainedIn: return "不包含";
                case RadGridStringId.FilterOperatorCustom: return "自定义";
                case RadGridStringId.CustomFilterMenuItem: return "自定义";
                case RadGridStringId.CustomFilterDialogCaption: return "过滤器对话框[{0}]";
                case RadGridStringId.CustomFilterDialogLabel: return "显示条件：";
                case RadGridStringId.CustomFilterDialogRbAnd: return "与";
                case RadGridStringId.CustomFilterDialogRbOr: return "或";
                case RadGridStringId.CustomFilterDialogBtnOk: return "确认";
                case RadGridStringId.CustomFilterDialogBtnCancel: return "取消";
                case RadGridStringId.CustomFilterDialogCheckBoxNot: return "非";
                case RadGridStringId.CustomFilterDialogTrue: return "真";
                case RadGridStringId.CustomFilterDialogFalse: return "假";
                //case RadGridStringId.FilterMenuBlanks: return "Empty";
                case RadGridStringId.FilterMenuAvailableFilters: return "可用的过滤器";
                case RadGridStringId.FilterMenuSearchBoxText: return "搜索...";
                case RadGridStringId.FilterMenuClearFilters: return "清除过滤器";
                case RadGridStringId.FilterMenuButtonOK: return "确认";
                case RadGridStringId.FilterMenuButtonCancel: return "取消";
                case RadGridStringId.FilterMenuSelectionAll: return "全部";
                case RadGridStringId.FilterMenuSelectionAllSearched: return "全部搜索结果";
                case RadGridStringId.FilterMenuSelectionNull: return "空";
                case RadGridStringId.FilterMenuSelectionNotNull: return "非  空";
                case RadGridStringId.FilterFunctionSelectedDates: return "按特定日期过滤:";
                case RadGridStringId.FilterFunctionToday: return "今天";
                case RadGridStringId.FilterFunctionYesterday: return "昨天";
                case RadGridStringId.FilterFunctionDuringLast7days: return "在过去的7天里";
                case RadGridStringId.FilterLogicalOperatorAnd: return "和";
                case RadGridStringId.FilterLogicalOperatorOr: return "或";
                case RadGridStringId.FilterCompositeNotOperator: return "非";
                case RadGridStringId.DeleteRowMenuItem: return "删除行";
                case RadGridStringId.SortAscendingMenuItem: return "升序排序";
                case RadGridStringId.SortDescendingMenuItem: return "降序排序";
                case RadGridStringId.ClearSortingMenuItem: return "清除分类";
                case RadGridStringId.ConditionalFormattingMenuItem: return "条件格式";
                case RadGridStringId.GroupByThisColumnMenuItem: return "按此列分组";
                case RadGridStringId.UngroupThisColumn: return "取消此列";
                case RadGridStringId.ColumnChooserMenuItem: return "列选择器";
                case RadGridStringId.HideMenuItem: return "隐藏列";
                case RadGridStringId.HideGroupMenuItem: return "隐藏组";
                case RadGridStringId.UnpinMenuItem: return "取消固定项";
                case RadGridStringId.UnpinRowMenuItem: return "脱离行";
                case RadGridStringId.PinMenuItem: return "固定的状态";
                case RadGridStringId.PinAtLeftMenuItem: return "固定在左";
                case RadGridStringId.PinAtRightMenuItem: return "固定在右";
                case RadGridStringId.PinAtBottomMenuItem: return "固定在底";
                case RadGridStringId.PinAtTopMenuItem: return "固定在顶";
                case RadGridStringId.BestFitMenuItem: return "最佳匹配";
                case RadGridStringId.PasteMenuItem: return "粘贴";
                case RadGridStringId.EditMenuItem: return "编辑";
                case RadGridStringId.ClearValueMenuItem: return "清除值";
                case RadGridStringId.CopyMenuItem: return "复制";
                case RadGridStringId.CutMenuItem: return "剪贴";
                case RadGridStringId.AddNewRowString: return "点击这里新增行";
                case RadGridStringId.ConditionalFormattingSortAlphabetically: return "按字母顺序排序的列";
                case RadGridStringId.ConditionalFormattingCaption: return "条件格式化规则管理器";
                case RadGridStringId.ConditionalFormattingLblColumn: return "仅格式化单元格";
                case RadGridStringId.ConditionalFormattingLblName: return "规则名称";
                case RadGridStringId.ConditionalFormattingLblType: return "单元格的值";
                case RadGridStringId.ConditionalFormattingLblValue1: return "值 1";
                case RadGridStringId.ConditionalFormattingLblValue2: return "值 2";
                case RadGridStringId.ConditionalFormattingGrpConditions: return "规则";
                case RadGridStringId.ConditionalFormattingGrpProperties: return "规则属性";
                case RadGridStringId.ConditionalFormattingChkApplyToRow: return "将此格式应用到整个行";
                case RadGridStringId.ConditionalFormattingChkApplyOnSelectedRows: return "如果选择行，则应用此格式";
                case RadGridStringId.ConditionalFormattingBtnAdd: return "添加新规则";
                case RadGridStringId.ConditionalFormattingBtnRemove: return "删除";
                case RadGridStringId.ConditionalFormattingBtnOK: return "确认";
                case RadGridStringId.ConditionalFormattingBtnCancel: return "取消";
                case RadGridStringId.ConditionalFormattingBtnApply: return "接受";
                case RadGridStringId.ConditionalFormattingRuleAppliesOn: return "规则适用于";
                case RadGridStringId.ConditionalFormattingCondition: return "条件";
                case RadGridStringId.ConditionalFormattingExpression: return "表达";
                case RadGridStringId.ConditionalFormattingChooseOne: return "[选择一个]";
                case RadGridStringId.ConditionalFormattingEqualsTo: return "等于 [Value1]";
                case RadGridStringId.ConditionalFormattingIsNotEqualTo: return "不等于 [Value1]";
                case RadGridStringId.ConditionalFormattingStartsWith: return "开始 [Value1]";
                case RadGridStringId.ConditionalFormattingEndsWith: return "结束 [Value1]";
                case RadGridStringId.ConditionalFormattingContains: return "包含 [Value1]";
                case RadGridStringId.ConditionalFormattingDoesNotContain: return "不包含 [Value1]";
                case RadGridStringId.ConditionalFormattingIsGreaterThan: return "大于 [Value1]";
                case RadGridStringId.ConditionalFormattingIsGreaterThanOrEqual: return "大于等于 [Value1]";
                case RadGridStringId.ConditionalFormattingIsLessThan: return "小于 [Value1]";
                case RadGridStringId.ConditionalFormattingIsLessThanOrEqual: return "小于或等于 [Value1]";
                case RadGridStringId.ConditionalFormattingIsBetween: return "在 [Value1] 和 [Value2] 之间";
                case RadGridStringId.ConditionalFormattingIsNotBetween: return "不在 [Value1] 和 [Value1] 之间";
                case RadGridStringId.ConditionalFormattingLblFormat: return "格式";
                case RadGridStringId.ConditionalFormattingBtnExpression: return "表达式编辑器";
                case RadGridStringId.ConditionalFormattingTextBoxExpression: return "表达式";
                case RadGridStringId.ConditionalFormattingPropertyGridCaseSensitive: return "区分大小写";
                case RadGridStringId.ConditionalFormattingPropertyGridCellBackColor: return "单元格背景色";
                case RadGridStringId.ConditionalFormattingPropertyGridCellForeColor: return "单元格前景色";
                case RadGridStringId.ConditionalFormattingPropertyGridEnabled: return "启用";
                case RadGridStringId.ConditionalFormattingPropertyGridRowBackColor: return "行的背景色";
                case RadGridStringId.ConditionalFormattingPropertyGridRowForeColor: return "行的前景色";
                case RadGridStringId.ConditionalFormattingPropertyGridRowTextAlignment: return "行文本对齐";
                case RadGridStringId.ConditionalFormattingPropertyGridTextAlignment: return "文本对齐";
                case RadGridStringId.ConditionalFormattingPropertyGridCaseSensitiveDescription: return "确定在评估字符串值时是否会区分大小写比较。";
                case RadGridStringId.ConditionalFormattingPropertyGridCellBackColorDescription: return "输入要用于单元格的背景颜色。";
                case RadGridStringId.ConditionalFormattingPropertyGridCellForeColorDescription: return "输入要用于单元格的前景色。";
                case RadGridStringId.ConditionalFormattingPropertyGridEnabledDescription: return "确定是否启用的条件。";
                case RadGridStringId.ConditionalFormattingPropertyGridRowBackColorDescription: return "输入要用于整行的背景颜色。";
                case RadGridStringId.ConditionalFormattingPropertyGridRowForeColorDescription: return "输入要用于整个行的前景色。";
                case RadGridStringId.ConditionalFormattingPropertyGridRowTextAlignmentDescription: return "输入单元格值的对齐方式，当应用到行是真的时。";
                case RadGridStringId.ConditionalFormattingPropertyGridTextAlignmentDescription: return "输入要用于单元格值的对齐方式。";
                case RadGridStringId.ColumnChooserFormCaption: return "列选择器";
                case RadGridStringId.ColumnChooserFormMessage: return "从网格中拖动\n列标头以将其\n从当前视图中移除。";
                case RadGridStringId.GroupingPanelDefaultMessage: return "拖动列到这里按此列分组";
                case RadGridStringId.GroupingPanelHeader: return "分组：";
                case RadGridStringId.PagingPanelPagesLabel: return "页";
                case RadGridStringId.PagingPanelOfPagesLabel: return "/";
                case RadGridStringId.NoDataText: return "没有要显示的数据";
                case RadGridStringId.CompositeFilterFormErrorCaption: return "过滤错误";
                case RadGridStringId.CompositeFilterFormInvalidFilter: return "复合筛选器描述符无效。";
                case RadGridStringId.ExpressionMenuItem: return "表达式";
                case RadGridStringId.ExpressionFormTitle: return "表达式生成器";
                case RadGridStringId.ExpressionFormFunctions: return "功能";
                case RadGridStringId.ExpressionFormFunctionsText: return "文本";
                case RadGridStringId.ExpressionFormFunctionsAggregate: return "合计";
                case RadGridStringId.ExpressionFormFunctionsDateTime: return "日期时间";
                case RadGridStringId.ExpressionFormFunctionsLogical: return "逻辑";
                case RadGridStringId.ExpressionFormFunctionsMath: return "绝对的";
                case RadGridStringId.ExpressionFormFunctionsOther: return "其它";
                case RadGridStringId.ExpressionFormOperators: return "运营商";
                case RadGridStringId.ExpressionFormConstants: return "常数";
                case RadGridStringId.ExpressionFormFields: return "领域";
                case RadGridStringId.ExpressionFormDescription: return "描述";
                case RadGridStringId.ExpressionFormResultPreview: return "结果预览";
                case RadGridStringId.ExpressionFormTooltipPlus: return "加";
                case RadGridStringId.ExpressionFormTooltipMinus: return "减";
                case RadGridStringId.ExpressionFormTooltipMultiply: return "乘";
                case RadGridStringId.ExpressionFormTooltipDivide: return "除";
                case RadGridStringId.ExpressionFormTooltipModulo: return "模";
                case RadGridStringId.ExpressionFormTooltipEqual: return "等于";
                case RadGridStringId.ExpressionFormTooltipNotEqual: return "不等";
                case RadGridStringId.ExpressionFormTooltipLess: return "少于";
                case RadGridStringId.ExpressionFormTooltipLessOrEqual: return "小于等于";
                case RadGridStringId.ExpressionFormTooltipGreaterOrEqual: return "大于等于";
                case RadGridStringId.ExpressionFormTooltipGreater: return "大于";
                case RadGridStringId.ExpressionFormTooltipAnd: return "逻辑 \"和\"";
                case RadGridStringId.ExpressionFormTooltipOr: return "逻辑 \"或\"";
                case RadGridStringId.ExpressionFormTooltipNot: return "逻辑 \"非\"";
                case RadGridStringId.ExpressionFormAndButton: return string.Empty; //if empty, default button image is used
                case RadGridStringId.ExpressionFormOrButton: return string.Empty; //if empty, default button image is used
                case RadGridStringId.ExpressionFormNotButton: return string.Empty; //if empty, default button image is used
                case RadGridStringId.ExpressionFormOKButton: return "确定";
                case RadGridStringId.ExpressionFormCancelButton: return "取消";
               /* case RadGridStringId.SearchRowChooseColumns: return "SearchRowChooseColumns";
                case RadGridStringId.SearchRowSearchFromCurrentPosition: return "SearchRowSearchFromCurrentPosition";
                case RadGridStringId.SearchRowMenuItemMasterTemplate: return "SearchRowMenuItemMasterTemplate";
                case RadGridStringId.SearchRowMenuItemChildTemplates: return "SearchRowMenuItemChildTemplates";
                case RadGridStringId.SearchRowMenuItemAllColumns: return "SearchRowMenuItemAllColumns";
                case RadGridStringId.SearchRowTextBoxNullText: return "SearchRowTextBoxNullText";*/
                case RadGridStringId.SearchRowResultsOfLabel: return "搜索标签的行结果";
                case RadGridStringId.SearchRowMatchCase: return "区分大小写";
                default:
                    return base.GetLocalizedString(id);
            }
        }

    }
}
